package com.lzlclass.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

     @TableId("uid")
     private long uid;

     private String username;

     private String password;

     //逻辑删除
     @TableLogic
     private Integer deleted;

     public User(String username, String password) {
          this.username = username;
          this.password = password;
     }
}
